package com.zmn.oms.services.impl.chan;

import com.zmn.oms.model.entity.chan.FacadeMessageEventError;
import com.zmn.oms.model.entity.chan.OrderClue;
import com.zmn.oms.persistence.interfaces.chan.FacadeMessageEventErrorDAO;
import com.zmn.oms.persistence.interfaces.chan.OrderClueDAO;
import com.zmn.oms.services.interfaces.chan.FacadeMessageEventErrorService;
import com.zmn.oms.services.interfaces.chan.OrderClueService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 类描述：
 *
 * @author lhl
 * @date 2020/12/29 15:29
 */
@Service("facadeMessageEventErrorService")
public class FacadeMessageEventErrorServiceImpl implements FacadeMessageEventErrorService {

    @Resource
    private FacadeMessageEventErrorDAO facadeMessageEventErrorDAO;


    @Override
    public FacadeMessageEventError findByKey(Long key) {
        return facadeMessageEventErrorDAO.findByKey(key);
    }

    @Override
    public List<FacadeMessageEventError> listByFacadeId(Integer facadeId) {
        return facadeMessageEventErrorDAO.listByFacadeId(facadeId);
    }

    @Override
    public int save(FacadeMessageEventError facadeMessageEventError) {
        return facadeMessageEventErrorDAO.insert(facadeMessageEventError);
    }

    @Override
    public int removeByKey(Long key) {
        return facadeMessageEventErrorDAO.deleteByKey(key);
    }
}
